package com.eastedu.client.file.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * The type File info response.
 *
 * @author zhangzhishuai
 */
@NoArgsConstructor
@Data
public class FileInfoResponse {

    private String id;
    private Integer size;
    private String md5;
    private String extension;
    private String fileName;
    private Integer state;
    private String provider;
    private Long updateTime;
    private Long createTime;
    private UrlsDTO urls;
    private List<GuidDTO> guid;
    private String hit;
    private String downloadUrl;
    private String path;

    /**
     * The type Urls dto.
     *
     * @author zhangzhishuai
     */
    @NoArgsConstructor
    @Data
    public static class UrlsDTO {
        private String preview;
        private String download;
        private String cdn;
    }

    /**
     * The type Guid dto.
     *
     * @author zhangzhishuai
     */
    @NoArgsConstructor
    @Data
    public static class GuidDTO {
        private String guid;
        private String fileName;
        private String oldFileId;
    }
}
